<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<table align="center" style="text-align: center" border="1" cellspacing="0" cellpadding="0" width="1000">
    <tr>
        <td>Id</td>
        <td>标题</td>
        <td>内容</td>
    </tr>
    <c:forEach items="${news}" var="n">
        <tr>
            <td>${n.id}</td>
            <td>${n.title}</td>
            <td>${n.context}</td>
        </tr>
    </c:forEach>
    <tr><td colspan="21">
        ${page.prePage} ${page.nextPage}
    </td></tr>
</table>
</body>
</html>